package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IBlogService extends IService<Blog> {
    /*显示blog*/
    Result qureyBlog(Long id);

    /*分页显示blog*/
    Result queryHotBlog(Integer current);
    /*完善点赞功能*/
    Result likesFunction(Long id);

    /*点赞排行榜*/
    Result showLikeList(Long id);

    Result showUserBlog(Long id,Integer current);

    Result saveBlog(Blog blog);

    /*从收件箱中（redis中当前用户对应的zSet）取出blog信息，显示关注的用户发送的blog，同时实现滚动分页*/
    Result followPush(Long lastId,Integer offset);


}
